//package com.info.zhiduoduo.admin.controller;
//
//import com.info.zhiduoduo.admin.model.formbean.project.ListSubProjectFormBean;
//import com.info.zhiduoduo.admin.model.formbean.project.LongProjectListFormBean;
//import com.info.zhiduoduo.admin.service.LongProjectService;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.core.service.common.ContractDocService;
//import com.info.zhiduoduo.repository.dto.project.LongProjectDto;
//import com.info.zhiduoduo.repository.dto.project.ProjectBriefDto;
//
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletResponse;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
//@RestController
//@RequestMapping("/longProject")
//@Api(tags = "长期项目")
//public class LongProjectController {
//    @Resource
//    LongProjectService longProjectService;
//    @Resource
//    ContractDocService contractDocService;
//
//
//
//    @ApiOperation("获取长期项目详情")
//    @PostMapping("/detail")
//    public SmartResult<LongProjectDto> getProjectDetail(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//        return longProjectService.getProjectDetail(formBean);
//    }
//
//    /**
//     * 获取项目列表
//     */
//    @PostMapping("/list")
//    @ApiOperation("长期项目列表")
//    public SmartResult<ProjectBriefDto> getProjectList(@RequestBody BaseSimpleFormBean<LongProjectListFormBean> formBean) {
//        return longProjectService.getProjectList(formBean);
//    }
//
//   @ApiOperation("获取长期项目的子项目列表")
//   @PostMapping("/listSubProjects")
//   public SmartResult<ProjectBriefDto> listSubProjects(@RequestBody BaseSimpleFormBean<ListSubProjectFormBean> formBean) {
//       return longProjectService.listSubProjects(formBean);
//   }
//
//   @ApiOperation("下载长期项目多个子项目合同压缩文件-zip包(包含所有子项目)")
//   @GetMapping("/downloadLongTermContractPdfZip")
//   public void downloadLongTermContractPdfZip(HttpServletResponse response, int parentProjectId) {
//       contractDocService.downloadLongProjectContractPdfZip(response, parentProjectId);
//   }
//}
